#include <iostream>
#include <array>
#include <vector>

int main()
{
	std::array<int, 5> arr{ 1, 2, 3};
	std::vector<int> Vec{1,2,3};
	/** 判断vector的个数：size() [9/1/2020 ZC] */
	std::cout << "element num : " << Vec.size() << std::endl;
	//获取std::array数组的个数
	std::cout << "array element num : " << arr.size() << std::endl;

	/** 判断vector为空：empty() [9/1/2020 ZC] */
	std::cout << "Vec element is empty : " << Vec.empty() << std::endl;
	/** 判断数组是否为空: empty()[9/1/2020 ZC] */
	std::cout << "array element is empty : " << arr.empty() << std::endl;



	//Microsoft C++ exception: std::out_of_range at memory
	//std::cout << "5th element is : " << arr.at(5) << std::endl;
	//崩溃
	//std::cout << "5th element is : " << arr[5] << std::endl;
	//获取std::array数组的个数
	/*std::cout << "element num : " << arr.max_size() << std::endl;*/

	/*int test();
	test();
	{
		int a = 8;
	}
	std::cout << "a = : " << a << std::endl;*/
	return 0;
}
int test()
{
	return 2;
}